/**
 * Utility class to launch simmobil with several options like logging
 * and user interface type (graphical or textual)
 *
 * @created Feb 3, 2007
 * @author jprieur
 */
package utils; 

import java.io.*;

import mygui.ModeChooser;
import tui.Tui;

import utils.Debug;
import utils.Monitor;

public class Launcher
{
    public static void main(String[] args)
    {
	// Monitor m = new Monitor();
	// TODO : find a proper way to remove default console handler
	//Debug.getBrainLogger().addHandler(m);
	//Debug.getGUILogger().addHandler(m);
	//Debug.getDebugLogger().addHandler(m);

	if(args.length == 0){
	    ModeChooser.main(new String[0]);
	}else{
	    Tui.main(args);
	}
    }
}
